package cn.iphone.sentinel;

import cn.iphone.domain.User;
import org.springframework.web.bind.annotation.PathVariable;

public class GetByIdFallbackClass {

    /**
     * 本类熔断
     * @param id
     * @return
     */
    public static User getByIdFallback(@PathVariable("id") Long id, Throwable throwable){
        throwable.printStackTrace();
        return new User(-1L,"熔断啦lalalalalla！");
    }
}
